from django.test import TestCase
from django.urls import reverse


class RentViewTest(TestCase):

    def test_index_view(self):
        resp = self.client.get(reverse('index'))
        self.assertEqual(resp.status_code, 200)
        self.assertEqual(resp.context['num'], 5)
